package com.gitee.cheungming.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author Zhang Ming
 * @since 2025-10-28
 */
@Getter
@Setter
@TableName("`order`")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单编号
     */
    @TableField("order_number")
    private String orderNumber;

    /**
     * 用户ID
     */
    @TableField("consumer_id")
    private Long consumerId;

    /**
     * 订单状态
     */
    @TableField("order_status")
    private Byte orderStatus;

    /**
     * 订单总金额
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;
}
